set terminal pdf
set output 'result0.pdf'

file='out.dat'

set title 'iterations 0 (init)'

set key outside

set xrange [-1:127]
set yrange [-1:127]

set ylabel 'Columns'
set xlabel 'Rows'
plot "<(sed -n '4,16132p' out.dat)" using 3:2:4 title "" with image

set output 'result5.pdf'
set title 'iterations 5'
plot "<(sed -n '64524,80653p' out.dat)" using 3:2:4 title "" with image

set output 'result10.pdf'
set title 'iterations 10'
plot "<(sed -n '145174,161302p' out.dat)" using 3:2:4 title "" with image

set output 'result15.pdf'
set title 'iterations 15'
plot "<(sed -n '225824,241952p' out.dat)" using 3:2:4 title "" with image

set output 'result25.pdf'
set title 'iterations 25'
plot "<(sed -n '387123,403252p' out.dat)" using 3:2:4 title "" with image

set output 'result50.pdf'
set title 'iterations 50'
plot "<(sed -n '790374,806503p' out.dat)" using 3:2:4 title "" with image

set output 'result75.pdf'
set title 'iterations 75'
plot "<(sed -n '1193624,1209752p' out.dat)" using 3:2:4 title "" with image

set output 'result100.pdf'
set title 'iterations 100'
plot "<(sed -n '1596874,1613002p' out.dat)" using 3:2:4 title "" with image
